static-lib=libmymath.a

$(static-lib):mymath.o
	ar -rc $@ $^
mymath.o:mymath.c
	gcc -c $^

.PHONY:clean
clean:
	rm -rf *.o *.a static-lib
	
.PHONY:output
output:
	mkdir -p static-lib/include
	mkdir -p static-lib/my-static-lib
	cp *.h static-lib/include
	cp *.a static-lib/my-static-lib

